package com.itheima.service.mongo;

import com.itheima.domain.mongo.Movement;
import com.itheima.vo.PageBeanVo;
import org.bson.types.ObjectId;

public interface MovementService {
    void save(Movement movement);
    //我的动态
    PageBeanVo findMyMovementByPage(Long userId,Integer pageNumber,Integer pageSize);
    //好友动态
    PageBeanVo findFriendMovementByPage(Long userId,Integer pageNumber,Integer pageSize);
    //推荐动态
    PageBeanVo findRecommendMovementByPage(Long userId,Integer pageNumber,Integer pageSize);

    Movement findById(ObjectId id);

    //根据用户id或者state进行查询
    PageBeanVo findMovementByCondition4Page(Long userId,Integer state,Integer pageNumber,Integer pageSize);

    void update(Movement movement);
}
